CiscoXaaSAPI

(0 reviews)

Generate Access Token

Before invoking the API:


  • Make sure you understand OAuth 2.0 documentation. You can find more about OAuth 2.0 here

  • Application registered on Cisco Mulesoft API portal and access granted by Cisco to the Requested Application. If this step has not been completed, please refer to the Request API Access page and complete this step.

  • Obtain Client ID and Client Secret from the registered application and ensure status is approved. You can view this information under Your Applications.

Generating a Token


NOTE: The example shown here uses Postman Client to call the API. In addition, this demo uses a Resource Owner Grant Type. Your experience may differ if you have a different grant type. If you don't have Postman, you can go here to download it.


Using your Client ID and Secret along with your CCO username and password, you want to make an HTTPS POST Call to the Production Token URL.


Content-Type = application/x-www-form-urlencoded
grant_type = password
Client_ID = client_id
Client_Secret = client_secret
username = your_username
password = your_password

resources/AuthTokenScreenshot1-c6abd008-5659-428d-935c-c64721812b55.pngresources/AuthTokenScreenshot2-12e46c32-96ad-4a72-9a58-6d592e645015.png

You should receive something resembling the following response assuming that all fields are valid

resources/AuthTokenScreenshot3-3e20dfd2-6088-44b7-9c82-46003ec9cea5.png

Keep in mind that the access token expires after a period of time, and you will need to generate a new one.


Reviews